<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{padding: 0;margin: 0;}
        .container{
            width: 1226px;
            margin: 50px auto;
            display: flex;
            background-color: grey;

            /* 嵌套的语法默认会被解析为 包含选择器 : .container .magnifier-wrap */
            .magnifier-wrap{
                width: 400px;
                min-height: 500px;
                background-color: powderblue;
                position: relative;

                .magnifier-preview{
                    width: 400px;
                    height: 400px;
                    position: relative;

                    .shadow{
                        width: 200px;
                        height: 200px;
                        background-color: rgba(0,0,0,0.5);
                        position: absolute;
                        left: 0;
                        top: 0;
                    }
                    
                    img{
                        width: 100%;
                    }
                }

                .magnifier-scale{
                    width: 400px;
                    height: 400px;
                    position: absolute;
                    left: 100%;
                    top: 0;
                }
            }

            .info-wrap{
                flex: 1;
                min-height: 500px;
                background-color: beige;
            }

            
        }

        
    </style>
</head>
<body>
    <!-- .container>(.magnifier-wrap>.magnifier-preview+.magnifier-list+.magnifier-scale)+.info-wrap -->
    <div class="container">
        <div class="magnifier-wrap">
            <!-- 图片预览盒子 -->
            <div class="magnifier-preview">
                <img src="../images/girlsmall1.jpg" alt="">
                <div class="shadow"></div>
            </div>

            <!-- 图片切换 -->
            <!-- <div class="magnifier-list"></div> -->

            <!-- 放大盒子 -->
            <!-- <div class="magnifier-scale">
                <img src="../images/girlbig1.jpg" alt="">
            </div> -->
        </div>
        <div class="info-wrap"></div>
    </div>
</body>
</html>